<html>
<head>
<script src="../rosy.js" type="text/javascript"></script>
<title>rosy.js sample page --- extends string</title>
<script type="text/javascript">
var rlog = new RosyLog();
rlog.use = true;
function hoge(){
  rlog.debug('in hoge()');
  rlog.d('out hoge()');
  return;
}
function moge(){
  rlog.debug('in moge()');
  var testObj = {"a":"1111","b":"2222"};
  rlog.debug("testObj",testObj);
  rlog.d('out moge()');
  return;
}
function hage(){
  try{
  	rlog.debug('in hage()');
  	alert(testObj);
  	rlog.d('out hage()');
  	return;
  }catch(e){
  	rlog.debug(e);
  }
}
function demoRun(){
	hoge();
	moge();
	hage();
}

</script>
</head>

<body>
<h2>rosy.js Log demo page</h2>
<br>
<input type="button" onclick="javascript:demoRun();" value="execute demoRun()" name="b">
<br>
<br>
Run Script
<pre>
&lt;script type=&quot;text/javascript&quot;&gt;
var rlog = new RosyLog(true);
function hoge(){
  rlog.debug(&#039;in hoge()&#039;);
  rlog.d(&#039;out hoge()&#039;);
  return;
}
function moge(){
  rlog.debug(&#039;in moge()&#039;);
  var testObj = {&quot;a&quot;:&quot;1111&quot;,&quot;b&quot;:&quot;2222&quot;};
  rlog.debug(&quot;testObj&quot;,testObj);
  rlog.d(&#039;out moge()&#039;);
  return;
}
function hage(){
  try{
  	rlog.debug(&#039;in hage()&#039;);
  	alert(testObj);
  	rlog.d(&#039;out hage()&#039;);
  	return;
  }catch(e){
  	rlog.debug(e);
  }
}
function demoRun(){
	hoge();
	moge();
	hage();
}

&lt;/script&gt; 
</pre>
</body>
</html>